-
Notifications
You must be signed in to change notification settings - Fork 111
Add optional parameters to PNConfiguration.__init__ #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Add optional parameters to PNConfiguration.__init__ allowing developers to set subscriber_key, publish_key, and uuid during initialization.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
| def __init__(self): | ||
| def __init__(self, | ||
| subscribe_key: Optional[str] = None, | ||
| publish_key: Optional[str] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jguz-pubnub shouldn't only publish_key be optional? All non-publish endpoints require subscribe_key and we also made uuid required as well (we need to start migration to the userId).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't be backward compatible. So maybe for now we can have it, but should plan some migration and notification about deprecation.
parfeon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We maybe need to add a note that PNConfiguration constructor without parameters will be deprecated, but in general looks good
feat: Add optional parameters to PNConfiguration.init
Add optional parameters to PNConfiguration.init, allowing developers to set subscribe_key, publish_key, and uuid during initialization
Closes #227